﻿using System;
using System.IO;
using System.Security.Cryptography;

namespace SHA_1
{
    public class Program
    {
        private const string InputFileName = @"..\..\Program.cs";

        public static void Main()
        {
            SHA1 sha = new SHA1CryptoServiceProvider();
            var computedHash = sha.ComputeHash(new FileStream(InputFileName, FileMode.Open));
            foreach (byte hashByte in computedHash)
            {
                Console.Write("{0} ", hashByte);
            }
            Console.WriteLine();
        }
    }
}
